//
//  SkeletonViewController.m
//  Skeleton
//
//  Created by David Weiss on 12/31/08.
//

#import "SkeletonViewController.h"


@implementation SkeletonViewController

- (id)init
{
	self = [super init];
	[self setTitle:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]];
	return self;
}

- (void)loadView
{
	// Load an application image and set it as the primary view
	contentView = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
	[contentView setImage:[UIImage imageNamed:@"white.png"]];
   
	// Provide support for auto-rotation and resizing
	contentView.autoresizesSubviews = YES;
	contentView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
   
	// Assign the view to the view controller
	self.view = contentView;
   [contentView release]; // reduce retain count by one
}

// Allow the view to respond to iPhone Orientation changes
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
	return YES;
}

-(void) dealloc
{
	// add any further clean-up here
	[contentView release];
	[super dealloc];
}

- (void)didReceiveMemoryWarning
{
   [super didReceiveMemoryWarning];
   
   // Releases the view if it doesn't have a superview
   // Release anything that's not essential, such as cached data
}

@end
